/**
 * 版权所有 (C), 2019-2019, XXX有限公司
 * 项目名：com.company.study.designpatterns.builder
 * 文件名: ConcreteBuilder
 * 日期: 2019/6/15 13:12
 * 说明:
 */
package com.company.study.designpatterns.builder;

/**
 * 具体的建造者
 *
 * @author Anbang713
 * @create 2019/6/15
 */
public class ConcreteBuilder extends Builder {
    private Computer computer = new Computer();

    @Override
    public void builderCpu(String cpu) {
        computer.setCpu(cpu);
    }

    @Override
    public void builderMemory(String memory) {
        computer.setMemory(memory);
    }

    @Override
    public void builderDisk(String disk) {
        computer.setDisk(disk);
    }

    @Override
    public Computer getComputer() {
        return computer;
    }
}